from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('http://news.baidu.com')

element = driver.find_element(By.ID, 'header-wrapper')
print(element.text)